package com.twentyOne.ClothingLand.service.impl;

import com.twentyOne.ClothingLand.dao.IEmployeeDAO;
import com.twentyOne.ClothingLand.dao.impl.EmployeeDAO;
import com.twentyOne.ClothingLand.service.IEmployeeService;
import com.twentyOne.ClothingLand.vo.Employee;

public class EmployeeService implements IEmployeeService {
	
	private IEmployeeDAO employeeDAO = new EmployeeDAO();
	
	@Override
	public void addEmployee(Employee employee) {
		
		this.employeeDAO.addEmployee(employee);
		
	}

	@Override
	public Employee authenticateEmployee(String userName, String password, int shopId) {
		
		return this.employeeDAO.authenticateEmployee(userName, password, shopId);
		
	}

	@Override
	public Employee authenticateAdmin(String userName, String password) {
		
		return this.employeeDAO.authenticateAdmin(userName, password);
		
	}

}
